package com.vf.admin.fiwork.service.impl;

import com.vf.admin.client.dao.AppMingxiChongzhiDao;
import com.vf.admin.client.dao.AppSetupDao;
import com.vf.admin.client.service.AppUserService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.fiwork.service.RechargeService;
import com.vf.admin.miaodong.entity.AppMingxiChongzhi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RechargeServiceImpl implements RechargeService {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    AppMingxiChongzhiDao appMingxiChongzhiDao;
    @Autowired
    AppUserService appUserService;
    @Autowired
    AppSetupDao appSetupDao;


    /**
     * 查询充值记录列表
     *
     * @param userId
     * @param splitPageBean
     * @return
     */
    @Override
    public List<AppMingxiChongzhi> selectRechargeList(Integer userId, SplitPageBean splitPageBean) {
        return appMingxiChongzhiDao.selectRechargeList(userId, splitPageBean);
    }

    @Override
    public AppMingxiChongzhi selectRecharge(String ordernum) {
        return appMingxiChongzhiDao.selectRecharge(ordernum);
    }
}
